<template>
	<view class="page">
		<uni-card class="card" :title="item.checkInTypeName" v-for="item in pageData" :key="item.id">
			<view class="item">
				<view>
					{{item.backMoney}}元
				</view>
				<view>{{item.addDate}}</view>
			</view>
		</uni-card>
		<view class="none"></view>
		<uni-load-more :status="status" v-if="totalPage>1"></uni-load-more>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue';
	import {
		usePage
	} from '/common/page';

	let searchObject = ref({
		no: 1,
		size: 20,
		sortField: "id",
		sortMethod: "desc",
		orderType:"pay"
	});
	const {
		pageData,
		status,
		totalPage,
		initData,
		total,
		loadMore
	} = usePage("/order/search", searchObject)
</script>

<style>
	.item {
		display: flex;
		justify-content: space-between;
	}

	.card {
		width: 95vw;
	}

</style>
